﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Usuarios/Usuario.Master" AutoEventWireup="true" CodeBehind="OLDCadastrarProduto.aspx.cs" Inherits="AuctionSite.Usuarios.CadastrarProduto" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContentu" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentu" runat="server">
  
  
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>    
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.8.0.js"></script>  
    <script src="../Scripts/maskMoney.js" type="text/javascript"></script>


<script type="text/javascript">
    $(document).ready(function () {
        $("#MainContent_txtValorInicial").maskMoney(
            {
                symbol: 'R$ ',
                showSymbol: true,
                thousands: '.',
                decimal: ',',
                symbolStay: true
            }
         )

    });
</script>

    <asp:Label ID="Label1" runat="server" Text="Nome do Produto"></asp:Label>
    <asp:TextBox ID="txtNome" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="Valida_Nome" runat="server" 
        ControlToValidate="txtNome" ErrorMessage="* Obrigatório" ForeColor="Red"></asp:RequiredFieldValidator>        
    <br />
   
    <asp:Label ID="lblDesc" runat="server" Text="Descrição"></asp:Label>
    <asp:TextBox ID="txtDesc" runat="server" TextMode="MultiLine"></asp:TextBox>
    <asp:RequiredFieldValidator ID="Valida_Desc" runat="server" 
        ControlToValidate="txtDesc" ErrorMessage="* Obrigatório" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    <br />
    <br />
    <div>
    <asp:UpdatePanel ID="panelcat" runat="server">
        <ContentTemplate>
            <asp:DropDownList ID="ddlcat" AutoPostBack ="true" AppendDataBoundItems="true"  runat="server" Height="20px" Width="156px" onselectedindexchanged="ddlcat_SelectedIndexChanged">
            </asp:DropDownList>
        </ContentTemplate>
      <Triggers>
       <asp:AsyncPostBackTrigger ControlID ="ddlcat" />
      </Triggers>
  </asp:UpdatePanel>

  <br />
    <asp:UpdatePanel ID="panelsub" runat="server">
        <ContentTemplate>
            <asp:DropDownList ID="ddlsub" AutoPostBack ="true" AppendDataBoundItems="true"  runat="server" Height="20px" Width="156px">
            </asp:DropDownList>
        </ContentTemplate>
      <Triggers>
       <asp:AsyncPostBackTrigger ControlID ="ddlsub" />
      </Triggers>
  </asp:UpdatePanel>
 </div>
    <br />
    <br />
    <asp:FileUpload ID="fup1" runat="server" />
    <br />
    
    <asp:Label ID="lblValorInicial" runat="server" Text="Valor Inicial"></asp:Label>
    <asp:TextBox ID="txtValorInicial" runat="server"></asp:TextBox>
    <br />
     <asp:RequiredFieldValidator ID="Valida_Valor" runat="server" 
        ControlToValidate="txtValorInicial" ErrorMessage="* Obrigatório" ForeColor="Red"></asp:RequiredFieldValidator>
        <br />
    <asp:Label ID="Label2" runat="server" Text="Data Inicial"></asp:Label>
    <asp:TextBox ID="TextBox1" runat="server" TextMode="SingleLine"></asp:TextBox>
    <asp:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" 
        Enabled="True" TargetControlID="TextBox1">
    </asp:CalendarExtender>
    <br />
    <br />
    <asp:Label ID="lblDataFinal" runat="server" Text="Data Final"></asp:Label>
    <asp:TextBox ID="txtDataFinal" runat="server" TextMode="SingleLine"></asp:TextBox>
    <asp:CalendarExtender ID="txtDataFinal_CalendarExtender" runat="server" 
        Enabled="True" TargetControlID="txtDataFinal">
    </asp:CalendarExtender>
    <br />
    <br />
    <asp:Button ID="btnCadastrar" runat="server" onclick="btnCadastrar_Click" 
        Text="Cadastrar" />
    <br />
    

</asp:Content>
